<template>
    <div class="page-header">
        <div class="left-back" v-if="showBack" @click="$router.back()">
            <span class="">back</span>
            返回
        </div>
        <span class="title-text">{{title}}</span>
        <div class="right-menu">
            <span class="" v-if="!$store.state.isLogin">user</span>
        </div>
    </div>
</template>

<script>
export default {
    name:'PageHeader',
    props:{
        title:{
            type:String,
            default:'软帝点餐'
        },
        showBack:{
            type:Boolean,
            default:false
        }
    },
    setup () {
        return {}
    }
}
</script>

<style lang="scss" scoped>

</style>